package com.liu.lab10.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("day")
public class BirthDay {
	@Value("2001")
	private int year;
	@Value("8")
	private int month;
	@Value("16")
	private int day;

	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public int getDay() {
		return day;
	}

	public BirthDay(int year, int month, int day) {
		this.year = year;
		this.month = month;
		this.day = day;
	}

	public BirthDay() {}

	public void setDay(int day) {
		this.day = day;
	}
	
	@Override
	public String toString() {
		return "BirthDay{" +
				"year=" + year +
				", month=" + month +
				", day=" + day +
				'}';
	}
}
